Optimal. Leaf size=79 \[ \frac {(a+b x)^{n+1} (c+d x)^{-n-2}}{(n+2) (b c-a d)}+\frac {b (a+b x)^{n+1} (c+d x)^{-n-1}}{(n+1) (n+2) (b c-a d)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 79, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {45, 37} \[ \frac {(a+b x)^{n+1} (c+d x)^{-n-2}}{(n+2) (b c-a d)}+\frac {b (a+b x)^{n+1} (c+d x)^{-n-1}}{(n+1) (n+2) (b c-a d)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 37
Rule 45
Rubi steps
\begin {align*} \int (a+b x)^n (c+d x)^{-3-n} \, dx &=\frac {(a+b x)^{1+n} (c+d x)^{-2-n}}{(b c-a d) (2+n)}+\frac {b \int (a+b x)^n (c+d x)^{-2-n} \, dx}{(b c-a d) (2+n)}\\ &=\frac {(a+b x)^{1+n} (c+d x)^{-2-n}}{(b c-a d) (2+n)}+\frac {b (a+b x)^{1+n} (c+d x)^{-1-n}}{(b c-a d)^2 (1+n) (2+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 59, normalized size = 0.75 \[ \frac {(a+b x)^{n+1} (c+d x)^{-n-2} (-a d (n+1)+b c (n+2)+b d x)}{(n+1) (n+2) (b c-a d)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.56, size = 205, normalized size = 2.59 \[ \frac {{\left (b^{2} d^{2} x^{3} + 2 \, a b c^{2} - a^{2} c d + {\left (3 \, b^{2} c d + {\left (b^{2} c d - a b d^{2}\right )} n\right )} x^{2} + {\left (a b c^{2} - a^{2} c d\right )} n + {\left (2 \, b^{2} c^{2} + 2 \, a b c d - a^{2} d^{2} + {\left (b^{2} c^{2} - a^{2} d^{2}\right )} n\right )} x\right )} {\left (b x + a\right )}^{n} {\left (d x + c\right )}^{-n - 3}}{2 \, b^{2} c^{2} - 4 \, a b c d + 2 \, a^{2} d^{2} + {\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} n^{2} + 3 \, {\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b x + a\right )}^{n} {\left (d x + c\right )}^{-n - 3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 124, normalized size = 1.57 \[ -\frac {\left (a d n -b c n -b d x +a d -2 b c \right ) \left (b x +a \right )^{n +1} \left (d x +c \right )^{-n -2}}{a^{2} d^{2} n^{2}-2 a b c d \,n^{2}+b^{2} c^{2} n^{2}+3 a^{2} d^{2} n -6 a b c d n +3 b^{2} c^{2} n +2 a^{2} d^{2}-4 a b c d +2 b^{2} c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b x + a\right )}^{n} {\left (d x + c\right )}^{-n - 3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.74, size = 214, normalized size = 2.71 \[ \frac {\frac {x\,{\left (a+b\,x\right )}^n\,\left (2\,b^2\,c^2-a^2\,d^2-a^2\,d^2\,n+b^2\,c^2\,n+2\,a\,b\,c\,d\right )}{{\left (a\,d-b\,c\right )}^2\,\left (n^2+3\,n+2\right )}-\frac {a\,c\,{\left (a+b\,x\right )}^n\,\left (a\,d-2\,b\,c+a\,d\,n-b\,c\,n\right )}{{\left (a\,d-b\,c\right )}^2\,\left (n^2+3\,n+2\right )}+\frac {b^2\,d^2\,x^3\,{\left (a+b\,x\right )}^n}{{\left (a\,d-b\,c\right )}^2\,\left (n^2+3\,n+2\right )}+\frac {b\,d\,x^2\,{\left (a+b\,x\right )}^n\,\left (3\,b\,c-a\,d\,n+b\,c\,n\right )}{{\left (a\,d-b\,c\right )}^2\,\left (n^2+3\,n+2\right )}}{{\left (c+d\,x\right )}^{n+3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________